.class Lcom/waiqin365/lightapp/kehu/id;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/kehu/et;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(ZLjava/util/ArrayList;)V
    .locals 5

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0, p1}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->b(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;Z)Z

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->e(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->e(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/bz;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/bz;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->e(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/waiqin365/lightapp/kehu/b/bz;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/bz;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kehu/b/bz;->a(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->b(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    if-eqz p2, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->j(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    const v2, 0x7f0800c7

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    aput-object v0, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Landroid/text/SpannableStringBuilder;

    invoke-direct {v2, v1}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    invoke-virtual {v1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    add-int/2addr v0, v1

    new-instance v3, Landroid/text/style/ForegroundColorSpan;

    const-string/jumbo v4, "#ff9008"

    invoke-static {v4}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v4

    invoke-direct {v3, v4}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v4, 0x22

    invoke-virtual {v2, v3, v1, v0, v4}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->k(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->f(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/bz;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/id;->a:Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;->s(Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/bz;->a(Z)V

    goto :goto_0
.end method
